import request from '@/utils/request'

// 查询会员入会审核列表
export function listContacts(query) {
  return request({
    url: '/system/contacts2/list',
    method: 'get',
    params: query
  })
}

// 查询会员入会审核详细
export function getContacts(id) {
  return request({
    url: '/system/contacts2/' + id,
    method: 'get'
  })
}

// 新增会员入会审核
export function addContacts(data) {
  return request({
    url: '/system/contacts2',
    method: 'post',
    data: data
  })
}

// 修改会员入会审核
export function updateContacts(data) {
  return request({
    url: '/system/contacts2',
    method: 'put',
    data: data
  })
}

// 删除会员入会审核
export function delContacts(id) {
  return request({
    url: '/system/contacts2/' + id,
    method: 'delete'
  })
}
// 删除会员入会审核
export function isAddFriend(flag,id) {
  return request({
    url: '/system/contacts2/isAddFriend/' + flag + '/' +id,
    method: 'get'
  })
}

